<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        ul {
            list-style: none;
            width: 1000px;
            margin: 100px auto;
        }
        
        ul li {
            width: 100px;
            height: 40px;
            float: left;
            background: palegreen;
            transform: skew(-30deg);
            margin-left: 20px;
            overflow: hidden;
        }
        
        ul li a {
            display: block;
            height: 40px;
            line-height: 40px;
            text-align: center;
            width: 124px;
            text-decoration: none;
            margin-left: -16px;
            transform: skew(30deg);
        }
    </style>
</head>

<body>
    <ul>
        <li><a href="">首页</a></li>
        <li><a href="">首页</a></li>
        <li><a href="">首页</a></li>
        <li><a href="">首页</a></li>
        <li><a href="">首页</a></li>
        <li><a href="">首页</a></li>
        <li><a href="">首页</a></li>
        <li><a href="">首页</a></li>
    </ul>
</body>

</html>